package com.hzvictory.hotel_system.pojo.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
//import com.hzvictory.hotel_system.common.annotation.Excel;
import com.hzvictory.hotel_system.common.core.domain.BaseEntity;

/**
 * 收藏表对象 collection
 *
 * @author hzvictory
 * @date 2025-07-24
 */
public class Collection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户ID */
    //@Excel(name = "用户ID")
    private Long userId;

    /** 收藏类型：1房间，2座位，3菜品 */
    //@Excel(name = "收藏类型：1房间，2座位，3菜品")
    private Long itemType;

    /** 收藏项ID */
    //@Excel(name = "收藏项ID")
    private Long itemId;

    /** 收藏时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setItemType(Long itemType)
    {
        this.itemType = itemType;
    }

    public Long getItemType()
    {
        return itemType;
    }

    public void setItemId(Long itemId)
    {
        this.itemId = itemId;
    }

    public Long getItemId()
    {
        return itemId;
    }

    public void setCollectTime(Date collectTime)
    {
        this.collectTime = collectTime;
    }

    public Date getCollectTime()
    {
        return collectTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("itemType", getItemType())
                .append("itemId", getItemId())
                .append("collectTime", getCollectTime())
                .toString();
    }
}
